import { BaseSexCaloryCalculator } from "./base.sex.calory.calculator";
import { Male_COMPUTATIONAL_FORMULA } from "./model/calory-calculator.model";

export class MaleCaloryCalculator extends BaseSexCaloryCalculator {
    constructor(age: number, weight: number) {
        super(age, weight);
    }

    nonageCaloricCalculate() {
        return Male_COMPUTATIONAL_FORMULA.NONAGE * this.weight;
    }

    juvenileCaloricCalculate() {
        return Male_COMPUTATIONAL_FORMULA.JUVENILE * this.weight;
    }

    youthCaloricCalculate() {
        return Male_COMPUTATIONAL_FORMULA.YOUTH * this.weight;
    }

    agedCaloricCalculate() {
        return Male_COMPUTATIONAL_FORMULA.AGED * this.weight;
    }


    illegalCaloricCalculate() {
        return Male_COMPUTATIONAL_FORMULA.ILLEGAL
    }
}